<template>
  <h2>一级路由登录之后显示home页面{{ userStore.username }}</h2>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import useUserStore from '@/store/modules/user'
let userStore = useUserStore()
onMounted(() => {
  userStore.userInfo()
})
</script>

<style lang="less" scoped></style>
